package cn.sxt.clinic.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-29
 */
@TableName("t_procurement")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Procurement extends Model implements Serializable{

    private static final long serialVersionUID=1L;

    @TableId(value = "procurement_id", type = IdType.AUTO)
    private Long procurementId;

    private String unit;

    private String specs;

    private String medicineName;

    private String procurementManufacturer;

    private Long procurementNumber;

    private Float procurementWholesalePrice;

    private Float procurementPrescriptionPrice;

    private Float procurementWholesaleAmount;

    private Float procurementPrescriptionAmount;

    private Long makeNumber;

    @TableField(exist = false)
    private String oddNumbers;

    @TableField(exist = false)
    private String creator;

    @TableField(exist = false)
    private List<Supplier> suppiler;

    @TableField(exist = false)
    private Date billingDate;

    @Override
    protected Serializable pkVal() {
        return procurementId;
    }
}
